<?php


namespace app\common\model;


use think\Model;

class NewsModel extends Model
{
    public function category()
    {
        return $this->hasOne(NewsCategoryModel::class, 'id', 'category_id');
    }
}